package com.mazaiting.socket;

import org.springframework.boot.Banner;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;

/**
 * Socket 服务启动类
 *
 * @author mazaiting
 * @create_time 2022/4/18 13:16
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.mazaiting")
public class ApolloSocketApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(ApolloSocketApplication.class)
                .web(WebApplicationType.NONE) // .REACTIVE, .SERVLET
                .bannerMode(Banner.Mode.OFF)
                .run(args);
    }
}
